package com.hzncc.flowable_diboot.service;

import com.diboot.core.service.BaseService;
import com.diboot.core.vo.JsonResult;
import com.diboot.core.vo.Pagination;
import com.hzncc.flowable_diboot.dto.BusinessDTO;
import com.hzncc.flowable_diboot.entity.Business;
import com.hzncc.flowable_diboot.vo.BusinessListVO;
import com.hzncc.flowable_diboot.vo.OppoFlowOrderDetailVO;
import com.hzncc.flowable_diboot.vo.OppoFlowOrderItemDetailVO;

import java.util.List;

/**
* 商机 相关Service接口定义
* @author MyName
* @version 1.0
* @date 2024-06-06
* Copyright © MyCorp
*/
public interface BusinessService extends BaseService<Business> {

    /**
     * 流程单查询
     *
     * @param id
     * @author 陈广煜
     * @date 2024/6/11
     */
    OppoFlowOrderDetailVO selectFlowOrder(String id);

    void create(Business business);

    void flowCommit(OppoFlowOrderDetailVO detailVO,String itemId);

    List<BusinessListVO> selectBusiness(BusinessDTO businessDTO, Pagination pagination,String type);

    JsonResult<?> flowCommit(OppoFlowOrderItemDetailVO item, String res);

    /**
     * 流程暂存
     *
     * @param item
     * @return
     * @author 陈广煜
     * @date 2024/7/9
     */
    JsonResult<?> flowStage(OppoFlowOrderItemDetailVO item);
}